<template>
    <div class="demo">
        <h1>这是一个用来测试的demo页面{{msg}}</h1>
        <hr/>
        <test3/>
        <hr/>
        <test4/>
    </div>
</template>
<script>
import Test3 from '../components/test3'
import Test4 from '../components/test4'
export default {
  name: 'demo',
  components: {
    Test3,
    Test4
  },
  data() {
    return {
      msg: 123
    }
  },
  methods: {
  },
  mounted() {
    this.$on('sss', item => {
      this.msg = item
    })
  }
}
</script>
<style scoped>
.demo {
  color: #333;
}
</style>
